package com.fiona.core.message.enums;


public enum RpcResponseCodeEnum {

    SUCCESS("000000", "The remote call is successful"),
    FAIL("999999", "The remote call is fail"),
	
    CLIENT_CONNECT_SERVER_FAILURE("000001","客户端连接服务端失败"),
    SERVICE_INVOCATION_FAILURE("000001","服务调用失败"),
    SERVICE_CAN_NOT_BE_FOUND("000001","没有找到指定的服务"),
    SERVICE_NOT_IMPLEMENT_ANY_INTERFACE("000001","注册的服务没有实现任何接口"),
    REQUEST_NOT_MATCH_RESPONSE("000001","返回结果错误！请求和返回的相应不匹配");
	
	RpcResponseCodeEnum(String code, String message) {
		this.code = code;
		this.message = message;
	}
	
    private final String code;

    private final String message;

	public String getCode() {
		return code;
	}

	public String getMessage() {
		return message;
	}

}
